home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19950528-19950726 / 000032_news@columbia.edu_Wed May 31 15:47:17 1995.msg < prev    next >
Internet Message Format  |  1995-07-31  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA17174
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 2 Jun 1995 03:35:37 -0400
  3. Received: by apakabar.cc.columbia.edu id AA13948
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 2 Jun 1995 03:35:35 -0400
  5. Newsgroups: comp.protocols.kermit.misc
  6. Path: news.columbia.edu!spcuna!solaris.cc.vt.edu!news.mathworks.com!usenet.eel.ufl.edu!interlog.com!news1.fonorola.net!fonorola!torn!nott!cunews!boris!rmallett
  7. From: rmallett@boris.ccs.carleton.ca (Rick Mallett)
  8. Subject: Kermit scripting problems
  9. X-Nntp-Posting-Host: boris.carleton.ca
  10. Message-Id: <D9G96t.7DF@cunews.carleton.ca>
  11. Sender: news@cunews.carleton.ca (News Administrator)
  12. Organization: Carleton University
  13. X-Newsreader: TIN [version 1.2 PL2]
  14. Date: Wed, 31 May 1995 15:47:17 GMT
  15. Lines: 42
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. I've written some scripts to automate upload using kermit for
  19. users of a text based menu interface to Unix. I prompt the users for a
  20. list of files to upload and I would like to allow responses such as
  21. the following:
  22.  
  23. Enter list of files to upload: c:\autoexec.bat c:\temp\*.*
  24.  
  25. I've run into a couple of problems and I was wondering if anyone
  26. could give me some advice. I'm using expect/tcl to automatically
  27. generate sequences of instructions such as the following:
  28.  
  29.    apc server
  30.    set command quoting off
  31.    remote cd c:\
  32.    get autoexec.bat
  33.    remote cd c:\temp
  34.    get *.*
  35.    set command quoting on
  36.    fin 
  37.    apc connect
  38.  
  39. which will be executed by Unix kermit-5A-190 on the assumption that
  40. the remote machine is running MS-Kermit 3.14.
  41.  
  42. One problem is that if the directory `c:\temp' does not exist the 
  43. `get *.*' will upload all of the files in the current directory.
  44. I tried adding `if success get*.*' immediately after the command
  45. `remote cd c:\temp' but that doesn't work, presumably because the
  46. status on the remote machine is not available for checking. Is 
  47. there any way for me to detect in a script if the `remote cd'
  48. worked or not, and if not, is there a better way to do this?
  49. I also found that `remote cd c:' was not the same as `remote cd c:\',
  50. so I appended `\' to the string but then `remote cd c:\temp\' 
  51. seemed to fail. Is this a bug?
  52.  
  53.  
  54. ----------------------------------------------------------------------
  55. Rick Mallett
  56. Carleton University
  57.  
  58. Email address: rmallett@ccs.carleton.ca
  59. ----------------------------------------------------------------------